package com.design.pattern.structure.decorator.general;

public class Client {
    public static void main(String[] args) {
        Component c1 = new ConcreteComponent();//首先创建需要被修饰的原始对象（即被装饰的对象）
        Decorator decoratorA = new ConcreteDecoratorA(c1);//给透明对象增加功能A
        decoratorA.operation();
    }
}
